package com.example.content.views

import android.animation.Animator
import android.content.Context
import android.util.Log
import android.view.View
import android.view.animation.Animation
import com.example.content.R
import razerdp.basepopup.BasePopupWindow
import razerdp.util.animation.AnimationHelper
import razerdp.util.animation.TranslationConfig

/**
 * Created by zhudongao
 * Desc
 * Date 2020/11/7
 */
class MySharePopup(val context: Context) : BasePopupWindow(context) {

    override fun onCreateContentView(): View {
        return createPopupById(R.layout.my_share_pop_layout)
    }

    override fun onCreateShowAnimation(): Animation {
        return AnimationHelper.asAnimation()
            .withTranslation(TranslationConfig.FROM_BOTTOM)
            .toShow()
    }
}